Fixed computation of sizegroups when no explicit request is set.
authorTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 19 Apr 2010 18:46:28 +0000 (14:46 -0400)
committerTristan Van Berkom <tristan.van.berkom@gmail.com>
Mon, 19 Apr 2010 18:46:28 +0000 (14:46 -0400)
My previous commit to GtkSizeGroup made sure that when
gtk_widget_set_size_request() is set on a widget, it will be
taken into account when computing the widget's own request,
this commit fixes the case where there is no explicit size
request.

gtk/gtksizegroup.c

index 56965aa9bb6e21c7346ba171e3dc5057d6464944..aaf826db4198f68dba21eeac64e5666bf3acc3af 100644 (file)
@@ -767,6 +767,8 @@ _gtk_size_group_bump_requisition (GtkWidget        *widget,
              else 
                result = compute_dimension (widget, mode, MAX (aux_info->height, widget_requisition));
            }
+         else
+           result = compute_dimension (widget, mode, widget_requisition);
        }
       else if (aux_info)
        {